package com.xjoyt.pay.operater.auth.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.operater.auth.po.Department;

public interface DepartmentContract {

	@RequestMapping(value = "loadPage", method = RequestMethod.POST)
	PageResult<Department> loadPage(@RequestBody PageParam<?> param);

	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<Department> save(Department param);

	@RequestMapping("remove/{id}")
	ExecuteResult<?> remove(@PathVariable("id") String id);
}
